package com.kaibes.web.api;

import java.util.List;

public class ApiLinkData {
    
    private String name;
    
    private String headers;
    private String method;
    
    private List<String> patternList;
    private boolean validated;
    private ApiLinkType type;
    
    private List<ParamValue> pathValues;
    private List<ParamValue> paramValues;
    
    private ApiLinkTypeDesc requestDesc;
    private ApiLinkTypeDesc responseDesc;
    
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getHeaders() {
        return headers;
    }
    public void setHeaders(String headers) {
        this.headers = headers;
    }
    public String getMethod() {
        return method;
    }
    public void setMethod(String method) {
        this.method = method;
    }
    public List<String> getPatternList() {
        return patternList;
    }
    public void setPatternList(List<String> patternList) {
        this.patternList = patternList;
    }
    public boolean isValidated() {
        return validated;
    }
    public void setValidated(boolean validated) {
        this.validated = validated;
    }
    public List<ParamValue> getPathValues() {
        return pathValues;
    }
    public void setPathValues(List<ParamValue> pathValues) {
        this.pathValues = pathValues;
    }
    public List<ParamValue> getParamValues() {
        return paramValues;
    }
    public void setParamValues(List<ParamValue> paramValues) {
        this.paramValues = paramValues;
    }
    public ApiLinkTypeDesc getRequestDesc() {
        return requestDesc;
    }
    public void setRequestDesc(ApiLinkTypeDesc requestDesc) {
        this.requestDesc = requestDesc;
    }
    public ApiLinkTypeDesc getResponseDesc() {
        return responseDesc;
    }
    public void setResponseDesc(ApiLinkTypeDesc responseDesc) {
        this.responseDesc = responseDesc;
    }
    public ApiLinkType getType() {
		return type;
	}
    public void setType(ApiLinkType type) {
		this.type = type;
	}
    public boolean isApi() {
    	return this.type == ApiLinkType.API;
    }
    
}
